<script src="<?php echo base_url() ?>commons/tablas/media/js/jquery.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/media/js/jquery.dataTables.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/extras/TableTools/media/js/ZeroClipboard.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/extras/TableTools/media/js/TableTools.js" type="text/javascript"></script>

<style type="text/css" title="currentStyle">
			@import "<?php echo base_url() ?>commons/tablas/media/css/demo_page.css";
			@import "<?php echo base_url() ?>commons/tablas/media/css/demo_table.css";
                        @import "<?php echo base_url() ?>commons/tablas/extras/TableTools/media/css/TableTools.css";
		</style>
<script type="text/javascript">
    var t=jQuery.noConflict();
			t(document).ready(function() {
				t('#example').dataTable( {
					"sPaginationType": "full_numbers",
                  "sDom": 'T C lfrtip', 
                    "oTableTools": { 
                    "sSwfPath": "<?php echo base_url() ?>commons/tablas/extras/TableTools/media/swf/copy_csv_xls_pdf.swf", 
                    "aButtons": [ 
                    "xls",], 
                    },
               } );
	} );
</script>

<form class="well form-horizontal span8" action="<?php echo base_url() . "admin.php/cambioparal/imprimir" ?>" method="post">
    <legend>REPORTES DE MATRICULADOS POR CARRERA</legend>
    <div class="control-group">
        
        <label class="control-label" for="select03">CARRERAS: <?php echo (!empty($nombre_car)?$nombre_car:"NO EXISTE"); ?></label>
        <label class="control-label" for="select03">CICLO  : <?php echo (!empty($nombre_cic)?$nombre_cic:"NO EXISTE");?></label>
        <label class="control-label" for="select03">SECCION:<?php echo (!empty($nom_seccion)?$nom_seccion:"NO EXISTE");?></label>
        
    </div>  
    
    <div id="tablamatriculai" >
        <table id="example" class="table table-bordered table-striped table-condensed">
            
            <thead>
                <tr>
                    <th>Nro</th>
                    <th>CEDULA</th>
                    <th>APELLIDOS</th>
                    <th>NOMBRES</th>
                    <th>PAR</th>
                </tr>
            </thead>
            <tbody>
                <?php
                $fila=1;
                //print_r($reporte);
                
                if (!empty($reporte)) {
                    foreach ($reporte as $i => $repor) {
                        ?>
                        <tr>
                            <td ><?php echo $fila; ?>
                                </td>
                            <td><a href="<?php echo base_url() . "admin.php/cambioparal/presentardatos/". $repor['id_matr'] ?>"><?php echo $repor['cedula_pers'] ?></a></td>
                            <td><?php echo $repor['apellido_pers'] ?></td>
                            <td><?php echo $repor['nombre_pers'] ?></td>
                            <td><?php echo $repor['paralelo']; ?></td>
                        </tr>
                        <?php
                        $fila+=1;
                    }
                }
                ?>
            </tbody>
        </table>  
    </div>
    <input type="hidden" <?php echo "name='ide_lec' value='" . $ide_lec . "'"; ?>>
    <input type="hidden" <?php echo "name='ide_car' value='" . $ide_car . "'"; ?>>
    <input type="hidden" <?php echo "name='ide_pen' value='" . $ide_pen . "'"; ?>>
    <input type="hidden" <?php echo "name='ide_ciclo' value='" . $ide_ciclo . "'"; ?>>
    <input type="hidden" <?php echo "name='seccion' value='" . $seccion . "'"; ?>>
    <input type="hidden" <?php echo "name='paralelo' value='" . $paralelo . "'"; ?>>

        <div class="controls">
                <button type="submit" class="btn">imprimir</button>
                <a href="<?php echo base_url() . "admin.php/cambioparal/inicio" ?>">
            <img src="<?php echo base_url(); ?>commons/images/boton_volver.gif"></a>

        </div> 


</form>

